package student.object.thread.sleep;

import student.object.thread.SleepThread;
import student.object.thread.WaitThread;

public class Test {
    public static void main(String[] args) {

        SleepService mSleepService = new SleepService();

        Thread sleepThread = new Thread(new SleepThread(mSleepService));
        Thread waitThread = new Thread(new WaitThread(mSleepService));
        sleepThread.start();
        waitThread.start();
    }
}